

#ifndef MATHEDITPOINT_H
#define	MATHEDITPOINT_H

#include <QtGui>

class MathEditPoint : public QLineEdit {
    Q_OBJECT

public:
    MathEditPoint(QWidget * parent);

    QSize sizeHint() const;

    void focusOutEvent(QFocusEvent * event);
    void focusInEvent(QFocusEvent * event);

    bool isNumber() const {
        return isNum;
    }

    bool isIdentifier() const {
        return isId;
    }

public slots:
    /**
     * Updates the size and high-lighting and passes it up through the node tree.
     */
    void upDateSize();
    
private:
    void keyPressEvent(QKeyEvent *event);
    bool isNum;
    bool isId;

};

#endif	/* MATHEDITPOINT_H */

